package com.example.my_project.auto_v2.service;

import com.example.my_project.auto_v2.pojo.HttpEntity;
import com.example.my_project.auto_v2.pojo.JsonResult;
import com.example.my_project.auto_v2.pojo.PathEntity;

/**
 * @Author: chenbo
 * @Description:
 * @Date: Created in 14:37 2018/7/25
 * @Modified By:
 */
public interface IPathService {

    /**
     * @Author chenbo
     * @Description 保存一个接口实体
     * @Date 16:37 2018/7/26
     * @param entity PathEntity
     * @return com.example.my_project.auto_v2.pojo.JsonResult
     **/
    JsonResult savePath(PathEntity entity);

    /**
     * @Author chenbo
     * @Description 查询所有接口
     * @Date 16:38 2018/7/26
     * @param
     * @return com.example.my_project.auto_v2.pojo.JsonResult
     **/
    JsonResult findAll();

    /**
     * @Author chenbo
     * @Description 查询所有接口信息，包括参数和body
     * @Date 16:39 2018/7/26
     * @param
     * @return com.example.my_project.auto_v2.pojo.JsonResult
     **/
    JsonResult findApi();

    JsonResult saveApi(HttpEntity entity);
}
